<?php
function showqueue($tasktotal, $tasklink,$taskcount,$taskitem,$taskduration,$taskupdateurl)
{
	global $lang;

	$output = "";
	if ($tasktotal)
	{
		if (isset($_SESSION["user"][0])) {$faction=faction($_SESSION["user"][10]); $imgs=$_SESSION["user"][13]; $fimgs=$faction[2];}
		else {$imgs=$default_imgs; $fimgs=$default_fimgs;}
		$imgpath = $imgs.$fimgs;

		$output .= "\n<table class='cute'><tr>";
		$output .= "<td colspan='3'><img src='".$imgpath."working.gif' align='absmiddle' title='".$lang['unitUpgQueue']."'> <b><u>".$lang['unitUpgQueue']."</u></b><hr color='blue'></td>";
		$output .= "</tr>";
		for ($i=0; $i<$tasktotal; $i++)
		{

			$output .= "<tr><td width='10%'><a class='q_link' href='".$tasklink[$i]."'>".img("cancel.png",$lang['cancel'])."</a></td>";
			$output .= "<td width='20%'>".img("r06.png",$lang['duration'])."<span id='".$i."'>".$taskduration[$i]."</span><script type='text/javascript'> var id=new Array(50); timer('".$i."', '".$taskupdateurl[$i]."'); </script></td>";
			$output .= "<td width='70%'>".$taskcount[$i]." x ".$taskitem[$i]."</td>";
			$output .= "</tr>";
		}
		$output .= "</table>";
	}
	return $output;
}
